
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h2>用户列表</h2>
<a href="${pageContext.request.contextPath}/addUser">添加</a>
<table border="1">
    <tr>
        <td>name</td>
        <td>age</td>
    </tr>
    <c:forEach items="${users}" var="s" varStatus="st">
        <tr>
            <td>${s.name}</td>
            <td>${s.age}</td>
            <td>
                <a href="${pageContext.request.contextPath}/delete?id=${s.id}">删除</a>
                <a href="${pageContext.request.contextPath}/update?id=${s.id}">修改</a>
            </td>
        </tr>
    </c:forEach>
</table>


</body>
</html>